#ifndef __STATE_H_
#define __STATE_H_

#define StateTable uint8
#define StateArgument int32
typedef struct StateElement{
    uint8 funType;
    StateArgument funArgument[3];
}StateElement;

typedef struct GlobalPoint{
  uint8 isSearch;
  int16 x;
  int16 y;
}GlobalPoint;
void State_Machine();
void CreateTable();
extern float State_Angle;
extern int16 State_Globalx;
extern int16 State_Globaly;
extern int16 State_Nextx;
extern int16 State_Nexty;

#define StatetoEnc_XK 2452 
#define StatetoEnc_YK 2550
#endif